package com.ttbj.product.api;

import java.util.List;

import com.ttbj.product.bean.dto.OrderDto;
import com.ttbj.product.bean.dto.PageGlobal;
import com.ttbj.product.bean.dto.WorkListDto;

public interface WorkOrderFacade {

	/**
	 * 获取业务员列表
	 * @param salesmanId
	 * @throws Exception
	 */
	List<WorkListDto> getWorkList(Long salesmanId) throws Exception;
	
	
	/**
	 * 订单
	 * @param orderId
	 * @return
	 * @throws Exception
	 */
	OrderDto getWorkOrderDetail(Long orderId) throws Exception;

	
	

	/**
	 * 业务员上门确认
	 * @param workId
	 * @param orderId
	 * @param orderDriverRequire 
	 * @param packFee2 
	 * @throws Exception 
	 */
	void confirm(Long workId, Long orderId, Float allFee, Float fee, Float carryFee, Float packFee, Integer orderToCarry, Integer orderToPack, String truckType, Integer orderDriverRequire, Integer floorNum, Integer baleNum) throws Exception;


	/**
	 * 根据是否已完成带有分页的工单列表
	 * @param salesmanId
	 * 				业务员id
	 * @param isCompl
	 * 				是否已完成
	 * @param page
	 * 				分页dto
	 * @return
	 */
	List<WorkListDto> getWorkList(Long salesmanId, Integer isCompl, PageGlobal page);


	/**
	 * 根据工单表查询订单
	 * @param workId
	 * @return
	 * @throws Exception 
	 */
	Long getWorkOrder(Long workId) throws Exception;


	
	

}
